package com.huiquan.icd.dao;

import javax.annotation.Resource;

import org.springframework.stereotype.Repository;

import com.huiquan.framework.base.EnhancedBaseDao;
import com.huiquan.icd.domain.IcdDiseaseCategory;
import com.ibatis.sqlmap.client.SqlMapClient;

@Repository
public class IcdDiseaseCategoryDao extends EnhancedBaseDao<IcdDiseaseCategory> {

	@Resource(name = "sqlMapClient")
	private SqlMapClient sqlMapClient;

	public static final String space = "ICD_DISEASE_CATEGORY.";

	public IcdDiseaseCategoryDao() {
		super(space);
	}

	public IcdDiseaseCategory retrieveObjectByName(String name) {
		return (IcdDiseaseCategory)object(space + "RETRIEVE_OBJECT_BY_NAME", name, sqlMapClient);
	}

	public IcdDiseaseCategory retrieveObjectByDiseaseId(String id) {
		return (IcdDiseaseCategory)object(space + "RETRIEVE_OBJECT_BY_DISEASE_ID", id, sqlMapClient);
	}
	public IcdDiseaseCategory retrieveObjectByDiseaseIdNew(String id) {
		return (IcdDiseaseCategory)object(space + "RETRIEVE_OBJECT_BY_DISEASE_ID_NEW", id, sqlMapClient);
	}
}
